From: Keir Fraser Date: Mon, 8 Feb 2010 08:41:51 +0000 (+0000) Subject: remus: Only build kernel module if parent kernel has IMQ configured. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~12636 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=a73520207b4a8a1a7f3533b84377d90dac9ae391;p=xen.git remus: Only build kernel module if parent kernel has IMQ configured. Signed-off-by: Keir Fraser --- diff --git a/tools/remus/kmod/Makefile b/tools/remus/kmod/Makefile index bc4eaf4d6a..46f474aa3a 100644 --- a/tools/remus/kmod/Makefile +++ b/tools/remus/kmod/Makefile @@ -14,11 +14,11 @@ KERNELDIR ?= $(XEN_ROOT)/build-linux-$(LINUX_VER)_$(XEN_TARGET_ARCH) .PHONY: all all: - if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` modules; fi + if test -d $(KERNELDIR) && grep -q ^CONFIG_IMQ= $(KERNELDIR)/.config 2>/dev/null; then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` modules; fi .PHONY: install install: all - if test -d $(KERNELDIR); then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi + if test -d $(KERNELDIR) && grep -q ^CONFIG_IMQ= $(KERNELDIR)/.config 2>/dev/null; then $(MAKE) -C $(KERNELDIR) SUBDIRS=`pwd` INSTALL_MOD_PATH=$(DESTDIR) modules_install; fi clean:: -rm -rf *.o *.ko *.mod.c *.mod.o Module.symvers .*.cmd .tmp_versions